// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin

module.exports = {
  assetsDir: 'static',
  publicPath: './',
  productionSourceMap: false,
  lintOnSave: false,
  devServer: {
    open: false,
    host: '0.0.0.0',
    port: 9528,
    https: false,
    hotOnly: false,
    disableHostCheck: true,
    proxy: {
      '/': {
        target: 'https://www.yxzqy.com/',
        // target: 'http://test.yxzqy.com:7002/',
        changeOrigin: true,
        pathRewrite: { },
        ws: false,
        cookieDomainRewrite: 'localhost'
      },
    }
  },
  configureWebpack: {
    plugins: [
      // new MyAwesomeWebpackPlugin()
      // new BundleAnalyzerPlugin()
    ]
  }
}
